import 'package:json_annotation/json_annotation.dart';

part 'room_detail_data.g.dart';

@JsonSerializable()
class RoomDetailData {
  //房屋id
  final String id;
  //房屋标题
  final String title;
  //房屋介绍
  final String community;
  final String subTitle;
  //装修
  final String renovation;
  //房屋大小
  final int size;
  final String floor;
  //房屋价格
  final int price;
  //房屋类型
  final String roomType;
  //房屋上传的轮播图
  final List<String> houseImgs;
  //标签 近地铁 新房.....
  final List<String> tags;
  //朝向 东西南北
  final List<String> oriented;
  //房屋配置,字符串数组,,,衣柜,洗衣机.........
  final List<String> applicances;

  RoomDetailData(
      {this.id,
      this.title,
      this.community,
      this.subTitle,
      this.size,
      this.floor,
      this.price,
      this.renovation,
      this.roomType,
      this.houseImgs,
      this.tags,
      this.oriented,
      this.applicances});

  factory RoomDetailData.fromJson(Map<String, dynamic> json) =>
      _$RoomDetailDataFromJson(json);

  Map<String, dynamic> toJson(RoomDetailData instance) =>
      _$RoomDetailDataToJson(this);
}
